#ifndef CHOOSELANGUAGE_H
#define CHOOSELANGUAGE_H

#include "base.h"

#include <QMainWindow>

namespace Ui {
class ChooseLanguage;
}

enum AgreementTye {
    AGREEMENTTYPE,
    PRIVACYTYPE,
};

class ChooseLanguage : public Base
{
    Q_OBJECT

public:
    explicit ChooseLanguage(QWidget *parent = nullptr);
    ~ChooseLanguage();

    QString getModuleName() override { return "chooselanguage";}
    QList<QPair<QString, QString>> getData() override;
    bool nextStep() override;


public slots:
    void onStateChanged(int state);

signals:
    void showAgreementDialog(int ty, int state);
    void stateChanged(int state);

private slots:
    void on_agreement_Btn_released();

    void on_privacy_Btn_pressed();

    void on_zh_RBtn_released();

    void on_en_RBtn_released();

private:
    Ui::ChooseLanguage *ui;

    QString m_lang;

};

#endif // CHOOSELANGUAGE_H
